package com.nanjing.service.impl;

import com.nanjing.dao.StuDao;
import com.nanjing.dao.impl.StuDaoImpl;
import com.nanjing.service.StuManager;
import com.nanjing.util.BaseUtil;
import com.nanjing.vo.Student;

public class StuManagerImpl implements StuManager {
	
	private StuDao sd = new StuDaoImpl() ;

	@Override
	public Student login(String studentId, String password) {
		return sd.findStu(studentId, password) ;
	}

	@Override
	public int regist(Student stu) {
		stu.setPassword(stu.getPassword());
		return sd.addStu(stu);
	}

}
